#ifndef Setting_h
#define Setting_h

#define KIsiPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)  

//屏幕宽
#define Width [UIScreen mainScreen].bounds.size.width
//屏幕高
#define Height [UIScreen mainScreen].bounds.size.height
#define AdaptH(H) Width * H/375.0
//蓝色
#define Blue_Color [UIColor colorWithRed:52/255.0 green:122/255.0 blue:246/255.0 alpha:1]
//灰色
#define Gray_Color [UIColor colorWithRed:248/255.0 green:248/255.0 blue:248/255.0 alpha:1]
//底色 偏白的灰色
#define ColorBack [UIColor colorWithRed:246/256.0 green:246/256.0 blue:246/256.0 alpha:1.0]
//深淡蓝色
#define ColorDLBlue [UIColor colorWithRed:86/255.0 green:160/255.0 blue:233/255.0 alpha:1]


#define cCommonHeaderGrayColor   [UIColor colorWithHex:0xe6e6e6]
#define cCommonRedColor          [UIColor colorWithHex:0xBF0021]
#define cCommonLineColor         cCommonRGBColor(229,229,229,1)
#define cCommonRGBColor(red,Green,Blue,Alpha) [UIColor colorWithRed:red/255.0 green:Green/255.0 blue:Blue/255.0 alpha:Alpha]
//蓝色
#define ColorLan [UIColor colorWithRed:66/256.0 green:162/256.0 blue:255/256.0 alpha:1.0]

//MARK: - 用户基本信息

#define SERVICENAME [[NSBundle mainBundle] bundleIdentifier]//bundleid

static NSString * const USERNAME_KEY = @"Username";       //用户名key
static NSString * const Authorization = @"Authorization"; //AccessToken
static NSString * const KEEPLOGIN_KEY = @"KeepLogin";     //登录状态key
static NSString * const ACCESS_TOKEN = @"AccessToken";    //AccessToken
static NSString * const USER_TYPE = @"UserType";          //userType
static NSString * const JOB_KEY = @"JobKey";              //jobKey
static NSString * const StoreNo_KEY = @"StoreNoKey";      //storeNoKey
static NSString * const StoreId_KEY = @"StoreIDKey";      //storeIdKey
static NSString * const kIsLogin_KEY = @"ISLOGIN_KEY";      //是否登录

//MARK: - 审批
static NSInteger const agreeApprove = 210;  //同意审批通过
static NSInteger const refuseApprove = 220; //拒绝审批通过

//MARK: - 计划任务类型
static NSInteger const Meeting_Type = 910;        //会议
static NSInteger const OfficeWork_Type = 920;     //文案
static NSInteger const FewBusiness_Type = 930;    //零星
static NSInteger const VisiteStore_Type = 940;    //巡店
static NSInteger const BusinessTravel_Type = 950; //出差
static NSInteger const Vacation_Type = 960;       //休假


/*
 *  通知中心字段
 */
//首界面的imageView显示
static NSString *KRent_detailBackBtnClick_Notice = @"rent_detailBackBtnClick_Notice"; //更新门店拜访


static NSString *kBasicMessageFilePath = @"kBasicMessage";
static NSString *kBasicMD5MessageFilePath = @"kBasicMessageMD5";

#define Word_Count 50


//#define Complite_Or_Not @"compliteOrNot"//完成状态 完成 或者不完成
#define Complite_Or_Not @"0"//完成状态 完成 或者不完成
#define PictureWidth 620//图片指定尺寸
#define Phone_Services @"prefs:root=CAMERA"//打开拍照功能服务


//-------------------------------------接口
//获取版本接口
#define Get_Edition @"/api/Authorize/GetVersion"
//获取督导下属门店接口
#define GetStors @"/api/Task/GetAllStoreInSupervisor"

//---------------------------------基本数据校验
#define CheckBasicMessageInfo @"/deepdriving/api/m.basedata.check.php"

//---------------------------------基本数据
#define GetBasicMessageInfo @"/deepdriving/api/m.basedata.get.php"


// MARK: - 会员端的------------------------------------
// MARK: - 登录
#define LoginTD @"/deepdriving/api/m.member.login.php"

// MARK: - 手机号码验证
#define checkPhoneNum @"/deepdriving/api/m.phone.check.php"

// MARK: - 获取验证码
#define getYanZhengMa @"/deepdriving/api/m.verifycode.send.php"


// MARK: - 验证验证码0--------
#define checkYanZhengMa @"/deepdriving/api/m.verifycode.check.php"

// MARK: - 注册完成接口
#define RegisterTD @"/deepdriving/api/m.member.register.php"


// MARK: - 修改密码
#define CheckPwdTD @"/deepdriving/api/m.password.check.php"

// MARK: - 修改密码
#define ChangePwdTD @"/deepdriving/api/m.member.changepwd.php"


// MARK: - 忘记密码重置密码
#define ResetPwdTD @"/deepdriving/api/m.member.resetpwd.php"

// MARK: - 车辆搜索----------
#define CarSearchStrTD @"/deepdriving/api/m.carfuzzy.search.php"


// MARK: - 车源列表信息----------
#define CarListTD @"/deepdriving/api/m.car.list.php"

// MARK: - 车辆详情----------
#define CarDetailTD @"/deepdriving/api/m.car.detail.php"

// MARK: - 车源列表信息----------
#define GetNearbyStore @"/deepdriving/api/m.nearby.store.php"


//消息列表
#define Messagelist @"/deepdriving/api/m.member.message.list.php"

//阅读消息
#define ReadMessageTD @"/deepdriving/api/m.member.message.read.php"

//删除消息
#define DeleteMessageTD @"/deepdriving/api/m.member.message.delete.php"


//试驾券列表
#define Couponlist @"/deepdriving/api/m.member.coupon.list.php"


//试驾券绑定
#define CouponBind @"/deepdriving/api/m.member.coupon.bind.php"
//==================商户端的------------------------------



//还车日期是否可用
#define IsReturndayCanUse @"/deepdriving/api/m.car.returnday.get.php"



// MARK: - 订单接口-------------------------------------------
// MARK: - 预估价格-------------------------------------------
#define OrderCalc @"/deepdriving/api/m.order.calc.php"

// MARK: - 生成订单-------------------------------------------
#define OrderCreate @"/deepdriving/api/m.order.create.php"


// MARK: - 微信支付--------------------------------------开始
#define OrderWXPay @"/deepdriving/api/m.wx.unifiedorder.php"


// MARK: - 原始支付--------------------------------------开始
#define OrderOriginPay @"/deepdriving/api/m.order.pay.php"

//获取所有个人信息
#define GetMemberMessage @"/deepdriving/api/m.member.get.php"

//提交个人信息
#define UpdateMemberMessage @"/deepdriving/api/m.member.update.php"

//提交个人信息
#define UpLoadMemberMessage @"/deepdriving/api/m.member.upload.php"

//订单列表
#define OrderListM @"/deepdriving/api/m.order.list.php"

//订单列表
#define OrderGetDetailM @"/deepdriving/api/m.order.get.php"

//查询巡店反馈状态
#define XDFK @"CtrlFeedBack"
//==================价格月报接口
//获取价格月报
#define Get_MonthPrice @"/api/TaskPlan/GetMonthlyPrice"

//=================================促销员排班
#pragma mark 促销员排班
//获取本月排班信息
#define Get_SchedualInMonth @"/api/Schedual/GetSchedualInMonth"
//获取次月排班申请信息
#define Get_SchedualNextMonth @"/api/Schedual/GetSchedualNextMonth"
//提交排班信息
#define Post_SchedualNextMonth @"/api/Schedual/PostSchedualNextMonth"
//提交次月排班申请信息
#define Update_SchedualNextMonth @"/api/Schedual/UpdateSchedualNextMonth"

//===================================促销员个人界面接口
//工资月份
#define Wage_Month @"/api/Salary/GetSalaryMonth"
//工资详细信息
#define Wage_Interface @"/api/Salary/GetSalary"


//==========================****************************johnson**********************==========================//

//====================================================
//照片宽度
#define PhotoWidth 50
//照片高度
#define PhotoHeight 100
//照片间距
#define PhotoSpace 10

//----------------------------------------------------
#endif /* Setting_h */
